package com.weng.coder.controller;


import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import com.weng.coder.common.utils.Constants;
import com.weng.framework.core.model.ResponseData;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

/**
 * 用户 Web API
 *
 * @author wengzhonghui
 *  @创建时间 2018-07-17 17:22:12
 *
 */
@RestController
@RequestMapping("/user") 
@Api(value = "项目用户相关接口")
public class UserController{
//	@Resource
//    private UserFeignClient userFeignClient;
	
	
	
	/**
	 * 添加项目用户
	 * 
	 */
//	@RequestMapping(value="register",method=RequestMethod.POST)
//	@ResponseBody
//	@ApiOperation(value = "用户注册", notes = "用户注册")
//	@ApiImplicitParams({
//        @ApiImplicitParam(paramType = "query",name = "account",dataType ="String" ,required = true,value = "账号"),
//        @ApiImplicitParam(paramType = "query",name = "password",dataType ="String" ,required = true,value = "密码"),
//        @ApiImplicitParam(paramType = "query",name = "phone",dataType ="String" ,required = true,value = "联系电话"),
//        @ApiImplicitParam(paramType = "query",name = "email",dataType ="String" ,required = true,value = "邮箱")
//
//	 })
//	public ResponseData addProjectUser(String account, String password, String phone, String email
//			, HttpServletRequest request) throws Exception{
//
//		ResponseData oprationResult = userFeignClient.register(account, password, phone, email);
//		if(oprationResult.isFail()){
//			return ResponseData.ofFail(oprationResult.getMessage());
//		}
//
//		request.setAttribute(Constants.AOP_LOG_DESCRIPTION, "用户注册成功，账号【"+account+"】");
//		return ResponseData.ofSuccess("用户注册成功!");
//	}
	
	


}

